package game.adm.entity;

import game.adm.dao.PayDAO;
import game.adm.dao.dto.PayDTO;
import game.adm.dao.factory.PayFactory;
import projectx.core.base.ProjectXSystemException;
import projectx.core.base.ProjectXUserException;

public class PayEntityManager {
	
	public static PayDTO getPay() throws ProjectXSystemException,
			ProjectXUserException {
		PayFactory factory = PayFactory.getFactory();
		PayDAO dao = factory.getPayDAO();
		return dao.getPay();
	}
	
	public static boolean insert(PayDTO dto) throws ProjectXSystemException,
			ProjectXUserException {
		PayFactory factory = PayFactory.getFactory();
		PayDAO dao = factory.getPayDAO();
		return dao.insert(dto);
	}

	public static boolean update(PayDTO dto) throws ProjectXSystemException,
			ProjectXUserException {
		PayFactory factory = PayFactory.getFactory();
		PayDAO dao = factory.getPayDAO();
		return dao.update(dto);
	}
	
}
